import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
	{
		path: "/",
		name: "GameRoom",
		component: () => import("@/views/game/gameRoom.vue"),
	},
	{
		path: "/GameRoom",
		name: "GameRoom",
		component: () => import("@/views/game/gameRoom.vue"),
	},
	{
		path: "/Login",
		name: "UserLogin",
		component: () => import("@/views/login/UserLogin.vue"),
	},
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
